package il.ac.bgu.soa2009.hw6.cinema.impl;

import il.ac.bgu.soa2009.hw6.cinema.impl.Cinema;

/**
 * User: Henry
 * Date: 03/04/2009
 * Time: 18:47:46
 */
public class CinemaSingleton {
    private static Cinema cinema;

    public static Cinema getInstance() {
        synchronized (CinemaSingleton.class) {
            if (cinema == null) {
                cinema = new Cinema();
            }
        }
        return cinema;
    }
}
